﻿using Coder.Workflow;
using Fee.Orders;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Fee.Mapping.Orders.BudgetOrders
{
    public class BaseOrder : IEntityTypeConfiguration<DelegateOrderBase>
    {
        public BaseOrder()
        {
            
        }

        public void Configure(EntityTypeBuilder<DelegateOrderBase> builder)
        {
            builder.HasBaseType<ProcessInstance>();
            builder.Property(f => f.ThirdPartyWorkflowId).HasMaxLength(120);
        }
    }
}